package com.zfzs.post.modules.post.service.mybatis;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zfzs.post.model.dto.QueryAgentPageListDTO;
import com.zfzs.post.model.vo.StockStateVO;
import com.zfzs.post.modules.agent.domain.Agent;
import com.zfzs.post.modules.post.domain.TerminalInfo;
import com.zfzs.post.modules.post.service.dto.TerminalInfoQueryCriteria;
import com.zfzs.post.page.JpaPageHelper;

import java.util.List;
import java.util.Map;

/**
 * 代理商
 *
 * @author: ck
 * @create: 2019/10/12/11:37
 **/
public interface ITerminalInfoService extends IService<TerminalInfo> {

    List<Map<String, Object>> findTerminalPageList(TerminalInfoQueryCriteria dto, long pageNum, int pageSize);

    /**
     * 后台终端列表数量
     *
     * @param dto
     * @return
     */
    int findTerminalPageCount(TerminalInfoQueryCriteria dto);

    List<TerminalInfo> findActivatingTerminal(Long channelId);

    List<StockStateVO> queryStockState(Long agentId, Long channelId);
}
